package com.clayecloud.module_main.adapter;

import android.content.Context;

import androidx.databinding.ViewDataBinding;

import com.clayecloud.module_main.R;
import com.clayecloud.module_main.databinding.FragmentHomeNewsItemBinding;
import com.clayecloud.module_main.databinding.FragmentLifeCardItemBinding;
import com.clayecloud.module_main.entity.LifeCard;
import com.clayecloud.module_main.entity.News;

import java.util.List;

public class HomeViewDatabindingAdapter extends BaseBindingAdapter<News, FragmentHomeNewsItemBinding>{
    public HomeViewDatabindingAdapter(Context context, List list) {
        super(context, list);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.fragment_home_news_item;
    }

    @Override
    protected void onBindItem(FragmentHomeNewsItemBinding binding, News item) {
        binding.setItem(item);
    }

}
